]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
2 years agostyle: Fix some high contrast papercuts
Sam Hewitt [Mon, 5 Feb 2024 16:54:35 +0000 (13:24 -0330)]
style: Fix some high contrast papercuts

- add HC style to slider
- add HC style to Quick settings submenu header
- fix border issue with flat card style

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7320
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

2 years agodateMenu: Add class to menu so border-radius can be set in stylesheet
Sam Hewitt [Mon, 5 Feb 2024 16:34:15 +0000 (13:04 -0330)]
dateMenu: Add class to menu so border-radius can be set in stylesheet

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

2 years agostyle: Clean up message list padding
Sam Hewitt [Mon, 5 Feb 2024 16:17:31 +0000 (12:47 -0330)]
style: Clean up message list padding

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

2 years agostyle: Softer overview icon drop-shadows
Sam Hewitt [Mon, 5 Feb 2024 15:48:39 +0000 (12:18 -0330)]
style: Softer overview icon drop-shadows

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

2 years agostyle: Fix incorrectly defined color
Sam Hewitt [Mon, 5 Feb 2024 15:39:57 +0000 (12:09 -0330)]
style: Fix incorrectly defined color

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3165>

2 years agoUpdate Hebrew translation
Yosef Or Boczko [Mon, 5 Feb 2024 20:16:34 +0000 (20:16 +0000)]
Update Hebrew translation

2 years agoUpdate Hebrew translation
Yosef Or Boczko [Mon, 5 Feb 2024 19:43:39 +0000 (19:43 +0000)]
Update Hebrew translation

2 years agoUpdate Russian translation
Artur S0 [Mon, 5 Feb 2024 06:42:42 +0000 (06:42 +0000)]
Update Russian translation

2 years agoUpdate Turkish translation
Sabri Ünal [Sat, 3 Feb 2024 18:14:38 +0000 (18:14 +0000)]
Update Turkish translation

2 years agoUpdate Belarusian translation
Vasil Pupkin [Fri, 2 Feb 2024 21:59:19 +0000 (21:59 +0000)]
Update Belarusian translation

2 years agostyle: Clean up lockscreen styles to improve HC support
Sam Hewitt [Tue, 30 Jan 2024 16:10:20 +0000 (12:40 -0330)]
style: Clean up lockscreen styles to improve HC support

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3154>

2 years agodbusErrors: Don't generate enums
Florian Müllner [Thu, 1 Feb 2024 19:37:45 +0000 (20:37 +0100)]
dbusErrors: Don't generate enums

Generating the enums from a list of names means that developers
have to deduce the names of enum members themselves. That's more
important than a bit more convenience when adding a new enum, so
instead spell out the exported enums, and use the enums directly
when registering a domain.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3160>

2 years agowindowManager: Add "opacity: 0" to minimize ease animation
Keyu Tao [Mon, 25 Sep 2023 11:42:31 +0000 (19:42 +0800)]
windowManager: Add "opacity: 0" to minimize ease animation

Extensions like dash-to-dock use set_icon_geometry() to window.
This changes the dest and scale of ease animation of minimize and
makes it looks very strange. By setting dest opacity to 0 the animation
could be more natural.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2968>

2 years agoscreenshot: Split out disabling cast button
Florian Müllner [Tue, 30 Jan 2024 18:56:42 +0000 (19:56 +0100)]
screenshot: Split out disabling cast button

Screencasts can be disabled for various reasons:

 1. the service is not available (missing plugin etc.)
 2. screencasts are not allowed by the session mode
    (lock screen etc.)
 3. the UI is invoked in screenshot-only mode (portal)

Currently each of those conditions is handled in a different
code path, which means that later conditions can re-enable
the button.

There's also an inconsistency whether disabling the button
is done via visibility or reactivity, which still allows
toggling the hidden button via shortcuts (although a hidden
button means that screencasts aren't supported at all, so
nothing will be recorded in that case).

Address this by updating the button from a dedicated function.

Fixes: 671df28a50 ("screenshot: Only handle mode-switch shortcut when
supported")

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7358
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3155>

2 years agoextensions-app: Create about dialog from metainfo
Florian Müllner [Wed, 31 Jan 2024 02:11:08 +0000 (03:11 +0100)]
extensions-app: Create about dialog from metainfo

Using the existing metainfo to populate the about window means that
we stop duplicating information, which is generally a good idea.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3158>

2 years agoextensions-app: Fix app ID in .Devel metainfo
Florian Müllner [Wed, 31 Jan 2024 01:43:56 +0000 (02:43 +0100)]
extensions-app: Fix app ID in .Devel metainfo

The ID is currently hard-coded to the non-development one, with
the result that the .Devel app effectively doesn't have any
metainfo.

Fix that by configuring the file with the correct ID.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3158>

2 years agonotification: Show symbolic icons in a circle and smaller
Julian Sparber [Tue, 19 Dec 2023 15:12:59 +0000 (16:12 +0100)]
notification: Show symbolic icons in a circle and smaller

Huge symbolic icons look bad therefore we special case them, this
obviously can only work for icons that use the system icons.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3066>

2 years agoextensionDownloader: Use registered D-Bus error
Florian Müllner [Wed, 31 Jan 2024 16:44:10 +0000 (17:44 +0100)]
extensionDownloader: Use registered D-Bus error

Instead of returning ad-hoc errors, register a custom error domain
and return appropriate GLib.Errors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agonotificationDaemon: Use registered D-Bus error
Florian Müllner [Wed, 31 Jan 2024 17:32:15 +0000 (18:32 +0100)]
notificationDaemon: Use registered D-Bus error

Instead of returning ad-hoc errors, register a custom error domain
and return appropriate GLib.Errors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agoendSessionDialog: Use registered D-Bus error
Florian Müllner [Wed, 31 Jan 2024 16:44:05 +0000 (17:44 +0100)]
endSessionDialog: Use registered D-Bus error

Instead of returning ad-hoc errors, register a custom error domain
and return appropriate GLib.Errors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agodbusServices: Always import dbus errors
Florian Müllner [Wed, 31 Jan 2024 15:36:55 +0000 (16:36 +0100)]
dbusServices: Always import dbus errors

This makes sure custom errors are registered correctly, even when
the service doesn't do anything other than passing them on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agodbusErrors: Add utility module for handling remote errors
Florian Müllner [Wed, 31 Jan 2024 15:28:24 +0000 (16:28 +0100)]
dbusErrors: Add utility module for handling remote errors

We sometimes return custom D-Bus errors. Right now those errors
are ad-hoc, which means receivers don't have a proper way of
checking whether a thrown GLib.Error corresponds to a particular
remote error.

In order to change that, we should define proper error enums and
domains, and register them with GDBus, so that there is an automatic
mapping between D-Bus errors and GLib.Errors.

The new module doesn't export any domains or enums yet, but provides
internal tooling to make these exports more convenient.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agodbusService: Don't double-wrap remote errors
Florian Müllner [Wed, 31 Jan 2024 15:16:04 +0000 (16:16 +0100)]
dbusService: Don't double-wrap remote errors

Returning a GLib.Error from a method invocation will encode the
error when sent over the wire. In case the error itself is already
an encoded remote error, just passing it on will result in double
wrapping.

Avoid that by stripping any remote error information before
returning it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3159>

2 years agoextensions-app: Use new adaptive dialogs
Florian Müllner [Mon, 29 Jan 2024 12:39:57 +0000 (13:39 +0100)]
extensions-app: Use new adaptive dialogs

We already fulfill all prerequisites of the new adaptive dialogs,
so the port is straight-forward and painless.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3148>

2 years agoci: Do not create pipelines for branches with open MRs
Florian Müllner [Tue, 30 Jan 2024 16:27:32 +0000 (17:27 +0100)]
ci: Do not create pipelines for branches with open MRs

Pipelines for non-protected branches are set to 'manual', and
thus cheap. However they may still get picked by `@marge-bot`,
meaning that the bot waits for the completion of a pipeline that
never starts.

Avoid that by not creating pipelines for branches with open
merge requests.

Credit to Jordan, who came up with this for gst.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3153>

2 years agompris: Use player Identity if the player app isn't known
Julian Sparber [Fri, 26 Jan 2024 15:44:29 +0000 (16:44 +0100)]
mpris: Use player Identity if the player app isn't known

For players that don't match to an app, we can still do better than
the generic fallback if the client provides a valid `Identity` value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agonotifications: Add header like in the new designs
Julian Sparber [Mon, 30 Oct 2023 15:03:47 +0000 (16:03 +0100)]
notifications: Add header like in the new designs

See:
https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/9e2bed6f37030dbf7d82087623f266d3c012c949/notifications-calendar/notifications-grouping.png

This also increases the size of the icon to 48px.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6743
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agonotifications: Introduce MessageList.Source object
Julian Sparber [Fri, 26 Jan 2024 10:05:46 +0000 (11:05 +0100)]
notifications: Introduce MessageList.Source object

This object contains only the `title` and `icon` of a
`MessageTray.Source` which allows using it for sources
that aren't notification sources like mpris.

The old `MessageTray.Source` isn't renamed to something
less generic to not break API. Once we have a good reason
we should rename it to something more specific.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Allow settings gobject properties of Source on creation
Julian Sparber [Thu, 25 Jan 2024 20:52:34 +0000 (21:52 +0100)]
messageTray: Allow settings gobject properties of Source on creation

This also makes the `icon` property of `Source` writable so that it can
be set during creation instead of overriding the getter of the icon
property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotifications: Only set the title of a Source once
Julian Sparber [Thu, 25 Jan 2024 20:11:50 +0000 (21:11 +0100)]
FdoNotifications: Only set the title of a Source once

Even though the comment in the code says that sources are reused even
thought the app title has changed this is actually not the case. Therefore
when ever the app title of a notification changes a new `Source` is
created. Therefore there is no point in setting the app title again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Expose Source icon as GObject property
Julian Sparber [Wed, 24 Jan 2024 11:25:21 +0000 (12:25 +0100)]
messageTray: Expose Source icon as GObject property

As the notification redesign affects the API anyway, we can just
as well use the opportunity to modernize the code.

Turning the icon into a GObject property means we no longer need
a custom signal for change notifications, and the icon becomes
usable in bindings.

Since setting an `GThemedIcon` is common this also adds a convenience
property to set the icon name directly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Remove unused properties from Source
Julian Sparber [Thu, 25 Jan 2024 17:54:14 +0000 (18:54 +0100)]
messageTray: Remove unused properties from Source

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotifications: Don't use a fallback for no icon
Julian Sparber [Wed, 6 Dec 2023 19:48:43 +0000 (20:48 +0100)]
FdoNotifications: Don't use a fallback for no icon

There is no need to have an icon for every notification, don't add a
fallback.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agonotifications: Never use source icon for notifications
Julian Sparber [Wed, 6 Dec 2023 19:37:56 +0000 (20:37 +0100)]
notifications: Never use source icon for notifications

With the new design we will show the source icon in the header of a
notification.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotification: Highlight difference between icon/image and app-icon
Julian Sparber [Fri, 19 Jan 2024 18:08:46 +0000 (19:08 +0100)]
FdoNotification: Highlight difference between icon/image and app-icon

This just renames the `icon` variable to `appIcon` to make clear that
this icon is considered to be the app icon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageList: Remove secondary actor API from Message
Julian Sparber [Fri, 26 Jan 2024 14:18:44 +0000 (15:18 +0100)]
messageList: Remove secondary actor API from Message

The secondary actor isn't used for anything anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agocalender: Use datetime property to set timestamp for notifications
Julian Sparber [Fri, 26 Jan 2024 13:55:32 +0000 (14:55 +0100)]
calender: Use datetime property to set timestamp for notifications

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageList: Add property to display the timestamp of a message
Julian Sparber [Fri, 26 Jan 2024 13:54:04 +0000 (14:54 +0100)]
messageList: Add property to display the timestamp of a message

This also adds the needed actor to display the timestamp.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Remove the secondary icon from Notification
Julian Sparber [Thu, 25 Jan 2024 17:02:43 +0000 (18:02 +0100)]
messageTray: Remove the secondary icon from Notification

This was only used by the telepathy client, but after dropping the
presense indicator this isn't used anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agotelepathyClient: Stop displaying presence in notification
Julian Sparber [Thu, 25 Jan 2024 16:54:09 +0000 (17:54 +0100)]
telepathyClient: Stop displaying presence in notification

The presence indicator in notification uses API only needed for the
telepathyClient, since it's a complete fringe feature nowadays it's not
worth maintaining specific API for it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomagnifier: Fix isTrackingMouse()
Evan Welsh [Sat, 30 Oct 2021 22:00:02 +0000 (15:00 -0700)]
magnifier: Fix isTrackingMouse()

Commit 8aed51180f changed the way mouse tracking is implemented,
but missed updating that function.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2037>

2 years agomagnifier: Removed unused get*Color() methods
Evan Welsh [Sat, 30 Oct 2021 22:00:02 +0000 (15:00 -0700)]
magnifier: Removed unused get*Color() methods

They use API from Clutter.Rectangle which hasn't been used in the
magnifier since commit c815979f, and has since been removed from
Clutter altogether.

Since the methods are unused, remove them instead of fixing them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2037>

2 years agooverview: Hide search results while leaving overview
Suryashankar Das [Fri, 12 Mar 2021 19:49:10 +0000 (01:19 +0530)]
overview: Hide search results while leaving overview

There is currently no proper transition from search results
to the session: Only the top bar fades, but the rest of the
screen just changes abruptly at the end of the transition.

Fix this by hiding search results before leaving the overview,
so the regular transition can take place.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3821

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3152>

2 years agocleanup: Remove unused argument from createResultObject()
Andy Holmes [Fri, 18 Aug 2023 05:25:36 +0000 (22:25 -0700)]
cleanup: Remove unused argument from createResultObject()

The `SearchResultsView` is passed through to the `createResultObject()`
method of search providers, but doesn't seem to be used at all anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2901>

2 years agounlockDialog: Only show switch-user button for multiple users
Florian Müllner [Wed, 7 Sep 2022 14:57:08 +0000 (16:57 +0200)]
unlockDialog: Only show switch-user button for multiple users

We don't offer "Switch user" on single-user systems when unlocked,
so it is a bit weird to include it while locked.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2475>

2 years agomain: Only restore key focus on pop when modal actor is still focused
Jonas Dreßler [Sat, 13 Feb 2021 15:16:20 +0000 (16:16 +0100)]
main: Only restore key focus on pop when modal actor is still focused

If something grabs the key focus while a modal is pushed, keeping
key-focus on that actor seems like the smarter thing to do than setting
it back to the last focus after the modal gets popped again. So check if
the key focus actor that we set when pushing the modal got changed when
popping that modal, and if it got changed, simply don't touch key focus.

This fixes a bug with the close dialog, where key focus isn't correctly
set to the dialog after alt-tabbing to a window showing a close dialog.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/786>

2 years agocloseDialog: Actually set key focus to button when grabbing key focus
Jonas Dreßler [Sun, 27 Oct 2019 17:58:16 +0000 (18:58 +0100)]
closeDialog: Actually set key focus to button when grabbing key focus

When setting the key focus to `this._dialog`, the default button is not
automatically focused and no button has key focus.

Use the `initialKeyFocus` property of the dialog instead, and set focus
to the default button if the dialog is not already focused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/786>

2 years agoswitchMonitor: New assets for switcher items
Sam Hewitt [Fri, 19 Jan 2024 17:52:29 +0000 (14:22 -0330)]
switchMonitor: New assets for switcher items

- include new assets in the symbolic source
- update existing screenshot assets with new display design

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6013
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3128>

2 years agoboxpointer: Clamp alignments to expected range
Florian Müllner [Mon, 29 Jan 2024 16:29:51 +0000 (17:29 +0100)]
boxpointer: Clamp alignments to expected range

The values are expected to be between 0 (start) and 1 (end),
enforce that with appropriate clamp() calls.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3150>

2 years agoboxpointer: Swap arrow alignment on RTL
Florian Müllner [Mon, 29 Jan 2024 16:41:54 +0000 (17:41 +0100)]
boxpointer: Swap arrow alignment on RTL

The current code uses the arrow alignment to align the menu between
the top/left (0) and bottom/right(1), regardless of the text direction.

Instead of adjusting code everywhere, reinterpret the parameter
to refer to start/end instead, and swap the alignment with an
RTL text direction.

Credit to Sebastian Keller for spotting the cause of the issue.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5261
Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7356

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3150>

2 years agolookingGlass: Do not escape markup in button subclass constructor
Carlos Garnacho [Mon, 29 Jan 2024 15:41:03 +0000 (16:41 +0100)]
lookingGlass: Do not escape markup in button subclass constructor

Buttons no longer take Pango markup by default, there's no longer
need to escape text here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agoendSessionDialog: Drop markup from button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:38:50 +0000 (16:38 +0100)]
endSessionDialog: Drop markup from button labels

This is no longer necessary with button labels being non-markup
by default.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agokeyboard: Avoid markup escaping when setting button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:35:35 +0000 (16:35 +0100)]
keyboard: Avoid markup escaping when setting button labels

These are no longer interpreted as Pango markup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agost: Do not use markup in button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:18:31 +0000 (16:18 +0100)]
st: Do not use markup in button labels

It sounds strange that buttons would admit Pango markup
in their label text. It sounds better to default to plain
text, and let users wanting markup to access the child
directly.

This also makes the first label being set consistent
with later text being assigned wrt markup usage, since
the non-markup ClutterText API is used if the child is
already present and of the expected type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agowindowManager: Keep dim effect in overview
Florian Müllner [Mon, 29 Jan 2024 20:12:44 +0000 (21:12 +0100)]
windowManager: Keep dim effect in overview

Removing the effect dates back to the time when we didn't show
attached dialogs in the overview. Since we do show attached
dialogs as such nowadays, it makes sense to keep the effect.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6265

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3151>

2 years agodocs: List additional docs and API references in README
Florian Müllner [Tue, 16 Jan 2024 19:41:12 +0000 (20:41 +0100)]
docs: List additional docs and API references in README

With this change, all our documentation can now (directly or
indirectly) be accessed from the toplevel README.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Expand contribution section in README
Florian Müllner [Wed, 17 Jan 2024 04:52:10 +0000 (05:52 +0100)]
docs: Expand contribution section in README

Provide a link to the relevant handbook section and some guidance
for submitting a successful merge request, instead of just throwing
two links at the user.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Add section on feature requests
Florian Müllner [Wed, 17 Jan 2024 02:54:29 +0000 (03:54 +0100)]
docs: Add section on feature requests

Small and well-defined feature requests can be very useful, but
unfortunately too many are neither small nor well-defined.

Try to improve on that by adding another README section that
explains that changes need design approval, and points to
appropriate places to have broader design discussions,
hopefully without being too off-putting.

While this is unlikely to stop all "bad" feature requests, it
at least gives us something to point to when closing requests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Elaborate on issue reporting
Florian Müllner [Wed, 17 Jan 2024 02:38:52 +0000 (03:38 +0100)]
docs: Elaborate on issue reporting

We currently just link to the issue tracker without providing
any further guidance.

Improve on that by pointing to the appropriate handbook chapter,
point out extensions as a possible source of issues, and direct
users towards discourse/matrix for support/discussions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Elaborate on supported versions
Florian Müllner [Tue, 16 Jan 2024 18:43:31 +0000 (19:43 +0100)]
docs: Elaborate on supported versions

The link to the GNOME schedule was added because of some confusion
of which versions are supported upstream. Briefly outline the
policy of "last two stable + current main", so that the information
can also be deduced from tags etc. without scrolling through the
schedule calendar.

While at it, update the link to the schedule to point to the
future release.gnome.org page.

Death to the wiki!

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Split commit message conventions from README
Florian Müllner [Tue, 16 Jan 2024 00:54:56 +0000 (01:54 +0100)]
docs: Split commit message conventions from README

We currently only have a very brief outline of the commit message
conventions in the README.

Improve on that by splitting out the relevant section into a separate
file that outlines all conventions we use in addition to the general
guidelines in the [handbook].

[handbook]: https://handbook.gnome.org/development/commit-messages.html

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Mention code of conduct in README
Florian Müllner [Wed, 17 Jan 2024 05:15:43 +0000 (06:15 +0100)]
docs: Mention code of conduct in README

All project interactions are subject to the code of conduct,
so it seems like a good idea to explicitly mention that in
the README.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Remove project wiki reference from README
Florian Müllner [Tue, 16 Jan 2024 16:35:59 +0000 (17:35 +0100)]
docs: Remove project wiki reference from README

The wiki is in the process of being retired, so we should stop
linking to it.

Death to the wiki!

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Drop default branch section from README
Florian Müllner [Tue, 16 Jan 2024 01:33:56 +0000 (02:33 +0100)]
docs: Drop default branch section from README

It's been more than 2 ½ years since we renamed the default branch,
people have probably got the message by now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Add debugging information
Florian Müllner [Wed, 17 Jan 2024 09:36:10 +0000 (10:36 +0100)]
docs: Add debugging information

The current debugging page on the wiki is fairly outdated and
very X11-centric, so base the new page on the recently added
mutter documentation instead, but with a bigger focus on
Javascript debugging.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Document how to build and run gnome-shell
Florian Müllner [Wed, 17 Jan 2024 08:03:45 +0000 (09:03 +0100)]
docs: Document how to build and run gnome-shell

While we use the standard meson build steps, our dependencies
are non-trivial and running the shell can be tricky; it's
certainly worth documenting.

This is also a good opportunity for plugging out toolbox tooling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Document C coding style
Florian Müllner [Tue, 16 Jan 2024 22:42:31 +0000 (23:42 +0100)]
docs: Document C coding style

We have a fair bit of C code, yet don't document the expected
coding style. This is not much of an issue for regular GNOME
contributors as we are following the conventions of the wider
project (glib, gtk, clutter, ...), but it's still better to
spell it out.

Do that by adapting the corresponding documentation from mutter.

Even if much of our C code doesn't match all the new guidelines,
it's good to consolidate the coding style between both projects.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Update title of coding style guide
Florian Müllner [Tue, 16 Jan 2024 19:43:03 +0000 (20:43 +0100)]
docs: Update title of coding style guide

We are about to add a C coding style, so make clear that the
existing coding style doc refers to JS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Move HACKING
Florian Müllner [Tue, 16 Jan 2024 19:40:55 +0000 (20:40 +0100)]
docs: Move HACKING

Start consolidating project-wide documentation in the docs/ folder.

While at it, change the name `js-coding-style`, which is both less
ominous and allows for an accompanying `c-coding-style`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use dashes in filenames
Florian Müllner [Tue, 16 Jan 2024 19:03:03 +0000 (20:03 +0100)]
docs: Use dashes in filenames

Mutter's documentation was extended recently, with files using a
pattern of `some-stuff.md`. There is no strong argument for using
camel case, so switch to the same pattern as mutter to remove some
unnecessary friction for people who contribute to both projects.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use consistent spacing
Florian Müllner [Wed, 17 Jan 2024 05:21:24 +0000 (06:21 +0100)]
docs: Use consistent spacing

Sometimes we use a blank line between heading and paragraph,
sometimes we don't. Settle on the former.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use mutter.gnome.org URL for API docs
Florian Müllner [Tue, 16 Jan 2024 18:39:18 +0000 (19:39 +0100)]
docs: Use mutter.gnome.org URL for API docs

Mutter has a new public website, so use that for its API docs
instead of gitlab pages.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agoci: Check snippets in coding style
Florian Müllner [Thu, 25 Jan 2024 23:56:35 +0000 (00:56 +0100)]
ci: Check snippets in coding style

To avoid having the coding style get out of sync with the actual
coding style in the future, run eslint on the individual snippets
when either the guide or the linter config change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Use valid code in snippets
Florian Müllner [Thu, 25 Jan 2024 23:30:25 +0000 (00:30 +0100)]
doc: Use valid code in snippets

Some of the code examples use invalid code like `var` as variable
name or declarations in a single-statement context.

Fix those.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Fix style errors in coding style
Florian Müllner [Thu, 25 Jan 2024 22:15:42 +0000 (23:15 +0100)]
doc: Fix style errors in coding style

As we've adapted our coding style, the corresponding documentation
hasn't always caught up. Fix the errors that eslint would point
out if it checked the code snippets.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Remove outdated paragraph on quote style
Florian Müllner [Thu, 25 Jan 2024 23:18:00 +0000 (00:18 +0100)]
doc: Remove outdated paragraph on quote style

We stopped differentiating between translatable and non-translatable
strings a long time ago.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agoiconGrid: Don't recreate StIcons on icon theme changes
Florian Müllner [Tue, 23 Jan 2024 22:40:04 +0000 (23:40 +0100)]
iconGrid: Don't recreate StIcons on icon theme changes

Now that StIcon updates its texture automatically on icon theme
changes, we only have to recreate icon actors that aren't StIcons.

(This probably only applies to the folder icon in the app grid
where the sub-icons do use St.Icon, but making that assumption
feels dodgy with an API as generic as `createIcon()`)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3141>

2 years agost/icon: Automatically update on icon theme changes
Florian Müllner [Tue, 23 Jan 2024 20:20:51 +0000 (21:20 +0100)]
st/icon: Automatically update on icon theme changes

St.Icon is very commonly used for displaying themed icons, yet so
far updating the icon on icon theme changes is left to the caller.

Unsurprisingly, very few actually do that, with the result that
for most icons, icon theme changes only take effect after a delay
(say, a color change on hover) or not at all.

This is also inconsistent with GTK, where Gtk.Image will automatically
pick up icon theme changes.

Address this by tracking whether the current icon corresponds to
a themed icon, and update it automatically on theme changes if
it does.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3141>

2 years agocalendar: Stylesheet clean up & fixes
Sam Hewitt [Mon, 15 Jan 2024 16:59:26 +0000 (13:29 -0330)]
calendar: Stylesheet clean up & fixes

- added style class for when there are no world clocks present
- restructured the scss to match the widget structure
- cleaned up padding and font color styles
- improved high contrast support

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7324
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3120>

2 years agobuild: Remove dummy gi-docgen dependency
Florian Müllner [Sat, 20 Jan 2024 23:12:18 +0000 (00:12 +0100)]
build: Remove dummy gi-docgen dependency

Instead, add a provide to the wrap that allows it to be pulled in
by the `find_program('gi-docgen')` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3131>

2 years agoutil: Handle .rc in version comparisons
Florian Müllner [Fri, 19 Jan 2024 21:56:59 +0000 (22:56 +0100)]
util: Handle .rc in version comparisons

We somehow missed that the new version scheme include '.rc' when
adding the comparison function, whoops.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3130>

2 years agotests: Fix check for global scope pollution
Florian Müllner [Sun, 21 Jan 2024 17:50:54 +0000 (18:50 +0100)]
tests: Fix check for global scope pollution

Since commit c570011 dropped the `with` statement, this bit of
the test has only checked for writes to a specific variable
in the file.

There is no direct replacement for `with` here, the best we can
do (I think) is comparing property names on the global objects
before and after the `eval()` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3132>

2 years agotools/toolbox: Remove prepare step when setting up classic
Florian Müllner [Mon, 22 Jan 2024 12:50:33 +0000 (13:50 +0100)]
tools/toolbox: Remove prepare step when setting up classic

The classic styling is no longer build from a subproject, so
there aren't any submodules that need initializing anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3133>

2 years agoAdd .editorconfig
Florian Müllner [Mon, 22 Jan 2024 20:36:29 +0000 (21:36 +0100)]
Add .editorconfig

This should ensure that all editors which support
https://editorconfig.org/ use the correct indentation
with spaces (not tabs) by default.

This is hardly a full specification of our coding style,
but it's a correct subset and better than nothing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3137>

2 years agostyle: Be consistent with Adwaita flat elements in High Contrast
Sam Hewitt [Thu, 25 Jan 2024 15:41:26 +0000 (12:11 -0330)]
style: Be consistent with Adwaita flat elements in High Contrast

- update drawing mixin for buttons to override HC inset in flat style
- drop outlines for app icons in dash

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3143>

2 years agostyle: Fix issues with OSD buttons in light style
Sam Hewitt [Tue, 23 Jan 2024 15:36:17 +0000 (12:06 -0330)]
style: Fix issues with OSD buttons in light style

- update drawing mixin to account for missing always_dark colors
- fix button in app grid folder not being always dark

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3139>

2 years agodash: Resolve padding and alignment issues with dash items
Sam Hewitt [Mon, 15 Jan 2024 15:19:40 +0000 (11:49 -0330)]
dash: Resolve padding and alignment issues with dash items

- revert a change to y-expand on dash items
- clean up the manual padding on dash items in stylesheet
- fix an issue with the running dot being misaligned

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7322
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3119>

2 years agostyle: Fix color and margin issue in notification and dialog buttons
Sam Hewitt [Tue, 23 Jan 2024 15:17:09 +0000 (11:47 -0330)]
style: Fix color and margin issue in notification and dialog buttons

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3138>

2 years agoUpdate Galician translation
Fran Dieguez [Wed, 24 Jan 2024 00:20:51 +0000 (00:20 +0000)]
Update Galician translation

2 years agodata: Add Text Editor to the dash by default
Allan Day [Tue, 23 Jan 2024 11:15:34 +0000 (11:15 +0000)]
data: Add Text Editor to the dash by default

Add another app to the dash, to prevent it from being too empty by
default in some situations.

Fixes #7027

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3135>

2 years agoci: Bump mutter image
Florian Müllner [Tue, 23 Jan 2024 11:48:35 +0000 (12:48 +0100)]
ci: Bump mutter image

Mutter's wayland-protocols dependency has been bumped, so pull
in the updated image that satisfies it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3136>

2 years agoUpdate Turkish translation
Sabri Ünal [Mon, 22 Jan 2024 08:32:04 +0000 (08:32 +0000)]
Update Turkish translation

2 years agoUpdate Czech translation
Daniel Rusek [Mon, 22 Jan 2024 00:46:52 +0000 (00:46 +0000)]
Update Czech translation

2 years agoUpdate Czech translation
Daniel Rusek [Mon, 22 Jan 2024 00:26:29 +0000 (00:26 +0000)]
Update Czech translation

2 years agopanel: Actually switch to connectObject()
Florian Müllner [Fri, 19 Jan 2024 18:29:03 +0000 (19:29 +0100)]
panel: Actually switch to connectObject()

Fixes: 29ba8ab03c ("panel: Use connectObject() for overview signals")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3129>

2 years agopanel: Use connectObject() for overview signals
Florian Müllner [Fri, 19 Jan 2024 13:01:27 +0000 (14:01 +0100)]
panel: Use connectObject() for overview signals

We expect top bar and activities button to be around for the
entire duration of the session, but some extra caution doesn't
hurt.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3126>

2 years agopanel: Remove unnecessary code
Florian Müllner [Fri, 19 Jan 2024 12:35:53 +0000 (13:35 +0100)]
panel: Remove unnecessary code

Since commit a4660293748, the activities button uses the standard
`:checked` pseudo class in the overview instead of the custom
`:overview`.

As a side effect, the generic handling of the `CHECKED` Atk state
in StWidget now covers the case, and we no longer need to manage
the state explicitly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3126>

2 years agokeyboard: Add keyboard model configuration support
Leorize [Thu, 1 Dec 2022 07:11:57 +0000 (07:11 +0000)]
keyboard: Add keyboard model configuration support

Enables the use of a new `xkb-model` dconf key to let user configure
their desired keyboard model.

Also included is additional glue for respecting X11Model set at the
system level (ie. via `localectl`).

For simplicity, this assumes the use of one global keyboard model.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2583>

2 years agowindowManager: Fix effects of transient wayland windows
Florian Müllner [Thu, 18 Jan 2024 17:15:19 +0000 (18:15 +0100)]
windowManager: Fix effects of transient wayland windows

On wayland, transient windows don't use the DIALOG window type,
so any effects that special-case dialogs currently pick the
wrong animation.

Fix that with an "animation window type" that is used instead
of the real type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3125>

2 years agotests/build: Silence meson deprecation warning
Robert Mader [Thu, 18 Jan 2024 13:14:55 +0000 (14:14 +0100)]
tests/build: Silence meson deprecation warning

This produced the following warning:
```
DEPRECATION: Project uses feature that was always broken, and is now
deprecated since '1.3.0': str.format: Value other than strings,
integers, bools, options, dictionaries and lists thereof..
```

The resulting value of `SHELL_BACKGROUND_IMAGE` was indeed bogus, not
containing a proper file path.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3123>